#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void reversed(char* p, int n)
{
	char arr2[20] = { 0 };
	char* p2 = arr2;
	for (size_t i = 0;i < n;i++)
	{
		*p2 = *(p + n - 1);
		p2++;
		p--;
	}
	printf("%s", arr2);
}
int main()
{
	char arr[20] = {0};
	scanf("%[^\n]", arr);
	int n = strlen(arr);
	reversed(arr, n);
	return 0;
}
